import socket

# 创建socket对象：ipv4，指定UDP协议
udp_scoket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

send_address = ('192.168.3.60', 8888)

send_message = input('请输入发送内容：')

# 发送
udp_scoket.sendto( send_message.encode("UTF-8"),send_address)

# 关闭
udp_scoket.close()